import { HttpClient } from "@angular/common/http";
import { BankChartStore } from "./flux/bank-chart.store";
import { BankChartAction } from "./flux/bank-chart.action";
import { InjectionUtils } from "../../../adep/utils";

export class BankChartAccessor {

    private store: BankChartStore;
    private action: BankChartAction;
    private http: HttpClient;

    constructor() {
        this.store = InjectionUtils.injector.get(BankChartStore);
        this.action = InjectionUtils.injector.get(BankChartAction);
        this.http = InjectionUtils.injector.get(HttpClient);
    }

    /**
     * 获取数据
     */
    public requestData() {
        this.action.requestData();
    }
}